package com.phz.springcloud.study.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Builder;
import lombok.Data;

/**
 * @Auther: penghaozhong
 * @Date: 2018/9/13 10:40
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class IpResponse {

    private City data;

    public IpResponse() {
    }

    public void setCity(String cityName){
        this.data.setCity(cityName);
    }

    public String getCity(){
        return this.data.getCity();
    }

    private class City{
        public City() {
        }

        private String city;

        public String getCity() {
            return city;
        }

        public void setCity(String city) {
            this.city = city;
        }
    }

}
